<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	DropDownList With IEnumerable&lt;SelectListItem&gt; Sample
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>DropDownList With IEnumerable&lt;SelectListItem&gt; Sample</h2>

    <%= Html.DropDownList("Books","Select the book...") %><br />
    <%= Html.DropDownList("SelectedBook",
                (IEnumerable<SelectListItem>)ViewData["BookList"], "Select the book...")%>

</asp:Content>
